
<!--[if lt IE 7]>
<style>
  .tooltip {
    background-image:url(/media/img/tooltip/black_arrow.gif);
  }
</style>
<![endif]-->
<script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery.tooltip.min.js') ; ?>"></script>

<script>
  $(function() {      
      $("#menu_categories a[title]").tooltip({
          borderSize:'1',
          borderColor: '#BBBBBB',
          tooltipPadding: 6
      });
    });
</script>

<!-- header --> 
        <div class="container">
            <div class="row login_nav">
				<div class="logo">
                <?php if( file_exists( WebThemes::newInstance()->getCurrentThemePath() . "images/logo.png" ) ) { ?>
                    <a href="<?php echo osc_base_url() ; ?>">
                        <img src="<?php echo osc_current_web_theme_url('images/logo.png') ; ?>" alt="<?php echo osc_page_title() ; ?>" title="<?php echo osc_page_title() ; ?>" width="193" />
                    </a>
                <?php } else { ?>
                <div class="row">
                    <div class="span16 columns">
                        <h3><a href="<?php echo osc_base_url() ; ?>"><?php echo osc_page_title() ; ?></a></h3>
                    </div>
                </div>
                <?php } ?>
				</div>
                <div style="float:left;width:370px;text-align:left;margin-left:10px;margin-top:13px;color:#788588;">
                    <?php _e('Spain used trucks free classifieds', 'twitter_bootstrap') ; ?>
                </div>
                <div id="searchTop" style="float:left; margin-left:15px;display:none;">
                         <input class="xlarge" type="text" name="sPattern" value="">
                         <button type="submit" class="btn">
                                <img src="<?php echo osc_current_web_theme_url('images/search.png'); ?>" alt="search" />
                        </button>
                </div>
                <ul class="unstyled">
                    <li>
                    <?php if( osc_users_enabled() ) { ?>
                        <?php if( osc_is_web_user_logged_in() ) { ?>
                             <i class="icon-user"></i>
                            <?php printf(__('Hi %s', 'twitter_bootstrap'), osc_logged_user_name() . '!'); ?>  &middot;
                            <a href="<?php echo osc_user_list_items_url() ; ?>" rel="nofollow"><?php _e('My account', 'twitter_bootstrap') ; ?></a> &middot;
                            <a href="<?php echo osc_user_logout_url() ; ?>" rel="nofollow"><?php _e('Logout', 'twitter_bootstrap') ; ?></a>
                        <?php } else { ?>
                              <i class="icon-user"></i>
                            <a href="<?php echo osc_user_login_url() ; ?>" rel="nofollow"><?php _e('Login', 'twitter_bootstrap') ; ?></a> &middot;
                            <a href="<?php echo osc_register_account_url() ; ?>" rel="nofollow"><?php _e('Register', 'twitter_bootstrap') ; ?></a>
                        <?php } ?>
                    <?php } ?>
                    </li>
                    <?php if ( osc_count_web_enabled_locales() > 1) { ?>
                    <?php osc_goto_first_locale() ; ?>
                    <li class="languages">
                        &middot;
                        <a class="active" href="#" id="<?php echo osc_current_user_locale() ; ?>"><span id="lang_img"></span><?php /*_e('Language', 'twitter_bootstrap');*/ ?> <?php while ( osc_has_web_enabled_locales() ) { if( osc_locale_code() == osc_current_user_locale()) { ?><?php _e(osc_locale_field('s_short_name'), 'twitter_bootstrap');  ?><?php } } ?><span id="lang_arrow"></span></a>
                        <ul>
                        <?php $i = 0 ;  ?>
                        <?php osc_goto_first_locale() ; ?>
                        <?php while ( osc_has_web_enabled_locales() ) { ?>
                            <li <?php if($i == 0) { echo "class='first'"; } ?>><a id="<?php echo osc_locale_code() ; ?>" href="<?php echo osc_change_language_url ( osc_locale_code() ) ; ?>"><?php _e(osc_locale_field('s_short_name'), 'twitter_bootstrap'); ?></a></li>
                        <?php $i++ ; } ?>
                        </ul>
                    </li>
                </ul>
                <?php } ?>
            </div>
			
			<div class="btn-toolbar" style="margin-top: 10px;">
			
				<div id="rightbar">
					<a class="rightbarLink" href="<?php echo osc_item_post_url();//osc_item_post_url_in_category() ; ?>">
                                            <?php _e("Publish your vehicle for free", 'twitter_bootstrap'); ?>
                                        </a>
				</div>
				
				<div class="btn-group" id="menu_categories">
					 <?php while ( osc_has_categories() ) { ?>                                         
						<a class="btn" href="<?php echo osc_search_category_url() ; ?>" title="<?php echo osc_category_name() ?>">
							<img src="<?php echo osc_current_web_theme_url('images/cat/'. osc_category_id() .'.png'); ?>" alt="<?php echo osc_category_slug(); ?>" />
							<!--<br/><span><?php /*echo osc_category_name()*/ ?></span>-->
						</a>
					  <?php } ?>
				</div>				
			</div>		
			
            <div class="topbar-wrapper" style="z-index: 5;display:none;">
                <div class="topbar">
                    <div class="fill">
                        <div class="container">
                            <?php osc_goto_first_category() ; ?>
                            <?php if(osc_count_categories () > 0) { ?>
                            <ul class="nav">
                                <?php while ( osc_has_categories() ) { ?>
                                <li class="<?php echo osc_category_slug() ; ?><?php if ( osc_count_subcategories() > 0 ) { ?> menu<?php } ?>">
                                    <a href="<?php echo osc_search_category_url() ; ?>" <?php if ( osc_count_subcategories() > 0 ) { ?>class="menu"<?php } ?>>
									<?php View::newInstance()->_erase('subcategories'); echo osc_category_name() ; ?>										
									</a>
                                    <?php if ( osc_count_subcategories() > 0 ) { ?>
                                    <ul class="menu-dropdown">
                                        <?php while ( osc_has_subcategories() ) { ?>
                                        <li class="<?php echo osc_category_slug() ; ?>"><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a></li>
                                        <?php } ?>
                                    </ul>
                                    <?php } ?>
                                </li>
                                <?php } ?>
                            </ul>
                            <?php } ?>
                            <ul class="nav secondary-nav">
                                <li class="publish">
                                    <a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your vehicle for free", 'twitter_bootstrap'); ?></a>
                                </li>
                            </ul>
                        </div>
                    </div><!-- /fill -->
                </div><!-- /topbar -->
            </div>
        </div>
        <!-- header end -->
		<!-- loading -->
			<div id="curtain" style="display: hidden;"></div>
			<div id="clock" style="display: hidden; "></div>		